package S06;
public class Circle extends Shape { //圆类
	private double radius;//半径
	public Circle(double radius) {//构造方法
		this.radius=radius;
	}
	@Override
	public double getArea() {
		return Math.PI*radius*radius;
	}
	@Override
	public String getName() {
		return "Circle";
	}
}
